import { Tabs } from 'antd'
import RoleManagement from '@/pages/setting/RoleManagement'
import CompanyInfo from '@/pages/setting/CompanyInfo'

//页面
const Setting = () => {
  const onChange = (key) => {
    console.log(key)
  }
  const items = [
    {
      key: '1',
      label: `角色管理`,
      children: <RoleManagement />,
    },
    {
      key: '2',
      label: `公司信息`,
      children: <CompanyInfo />,
    },
  ]
  return (
    <div>
      <Tabs defaultActiveKey="1" items={items} onChange={onChange} />
    </div>
  )
}

export default Setting
